<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;

// 注册路由
Route::rule([
    'material/:id' => 'index/material/index',
    'material/lists/' => 'index/material/lists',
    'build/lists/:cid' => 'index/build/lists',
    'build/:id' => 'index/build/index',
    'designer/lists/:cid' => 'index/designer/lists',
    'designer/:id' => 'index/designer/index',
    'technology/:id' => 'index/technology/index',
    'technology/lists/' => 'index/technology/lists/',
    'news/lists/' => 'index/news/lists',
    'news/:id' => 'index/news/index',
    'example/lists/:cid' => 'index/example/lists',
    'example/:id' => 'index/example/index',
    'aboutus/:id' => 'index/aboutus/index',
    'ensemble/lists/:cid' => 'index/ensemble/lists',
    'ensemble/:id' => 'index/ensemble/index',
    'soft/lists/:cid' => 'index/soft/lists',
    'soft/:id' => 'index/soft/index',
    'server/:id' => 'index/server/index',
]);

return [
    '__domain__' => [
        'api' => 'api',
        'm' => 'mobile',
    ]
];
